import java.util.ArrayList;

import junit.framework.TestCase;
import android.cs2340UDT.Manager;
import android.cs2340UDT.ToDoList;



public class MarieTest extends TestCase{

		//BlackBox Test
		public void testDate0(){
			assertTrue("Failed name case 1", Manager.testDate("03302012"));
		}
		public void testDate1(){
			assertTrue("Failed name case 2", Manager.testDate("12319999"));
		}
		public void testDate2(){
			assertFalse("Failed name case 3", Manager.testDate("34567891"));
		}
		public void testDate3(){
			assertFalse("Failed name case 4", Manager.testDate("May31"));
		}
	
	
		//WhiteBox Test
		public void testAddNewList(){
			//ArrayList<ToDoList> temp = Manager.getToDoList();
			Manager man = new Manager();
			man.createNewList(null);
			man.createNewList("New List");
			ArrayList<ToDoList> temp = man.getToDoList();
			assertFalse("List is empty", temp.isEmpty());
			assertEquals(temp.size(), 2);
			assertFalse(temp.contains("MyList"));
		}

	
}
